package com.huizluo.module3.fightmaster;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class People {
    private Integer ID;
    private List<Card> cards = new ArrayList<>();

    public People(Integer ID) {
        this.ID = ID;
    }

    public void put(Card card){
        this.cards.add(card);
    }

    //整理牌
    public void order(){
        Collections.sort(this.cards);
    }

    //看牌
    public void show(){
        for (Card card : cards){
            System.out.println(card);
        }
    }
}
